﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class ChiTietPhieuTraHangBUS
    {
        public List<ChiTietPhieuTraHangDTO> DanhSachChiTietPTH()
        {
            ChiTietPhieuTraHangDAO ctpthDAO = new ChiTietPhieuTraHangDAO();
            return ctpthDAO.DanhSachChiTietPTH();
        }

        public string ThemCTPhieuTraHang(ChiTietPhieuTraHangDTO ctpthDTO)
        {
            ChiTietPhieuTraHangDAO ctpthDAO = new ChiTietPhieuTraHangDAO();
            return ctpthDAO.ThemCTPhieuTraHang(ctpthDTO);
        }
        public int LayMaChiTietPTH()
        {
            ChiTietPhieuTraHangDAO ctpthDAO = new ChiTietPhieuTraHangDAO();
            return ctpthDAO.LayMaChiTietPTH();
        }
    }
}
